#!bin/bash

#删除容器
if [ $(docker ps -aq --filter name=my-flow) ]; then
  docker rm -f my-flow
fi
#删除镜像
if [[ $(docker images |grep business/my-flow-platform) ]]; then
  docker rmi business/my-flow-platform:v1.0
fi
docker build  -t business/my-flow-platform:v1.0 .
docker run --restart=always   --name my-flow -d -p 8115:8115 business/my-flow-platform:v1.0